
package edu.java.homework.hw07.test0608b;

// Dopylnete metoda print, taka che izpolzvaneto mu v reda otbeliazan s  (1)
//da otpechatva stojnostta na poleto text ot klasa Message


class MySuperclass{
	Message msg= new Message();
}

class Message{
	//Syobshtenieto, koeto triabva da se otpechata
	String text= "Hello, world!";
}


public class Test0608b extends MySuperclass{
	public static void main (String[] args){
		Test0608b object= new Test0608b();
		object.print(); 	// 	( 1 )
	}
	public void print(){
	    	// tuk da se vmykne kod, kojto otpechatva 
		// stojnostta na poleto text ot klasa Message
	    System.out.println(msg.text);
	    
	    
	}
}

